<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/wickr_ctx.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wickr_ctx.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef wickr_ctx_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define wickr_ctx_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;eckey.h&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;devinfo.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;root_keys.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;ephemeral_keypair.h&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;storage.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;identity.h&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;protocol.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;encoder_result.h&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/****************************************</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment"> ****************************************</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment"> **  __          ___      _            **</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment"> **  \ \        / (_)    | |           **</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment"> **   \ \  /\  / / _  ___| | ___ __    **</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"> **    \ \/  \/ / | |/ __| |/ / &#39;__|   **</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"> **     \  /\  /  | | (__|   &lt;| |      **</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"> **      \/  \/   |_|\___|_|\_\_|      **</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment"> **                                    **</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment"> ****************************************</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment"> ***************************************/</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structwickr__ctx.html">   73</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__ctx.html">wickr_ctx</a> {</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#a244c238ad74f2dbcddc280822d1fb93f">   74</a></span>&#160;    <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> <a class="code" href="structwickr__ctx.html#a244c238ad74f2dbcddc280822d1fb93f">engine</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#a043ea3b027c4d27909f77bb195550b11">   75</a></span>&#160;    <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *<a class="code" href="structwickr__ctx.html#a043ea3b027c4d27909f77bb195550b11">dev_info</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#a044a292ab5cbba50fd3ec2f5bf7a00ef">   76</a></span>&#160;    <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="structwickr__ctx.html#a044a292ab5cbba50fd3ec2f5bf7a00ef">id_chain</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#ab6d3ad69a6a16c0f582186b9d8461b66">   77</a></span>&#160;    <a class="code" href="structwickr__storage__keys.html">wickr_storage_keys_t</a> *<a class="code" href="structwickr__ctx.html#ab6d3ad69a6a16c0f582186b9d8461b66">storage_keys</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#a86da8359c914b1fec0d60e1c64fcf048">   78</a></span>&#160;    <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__ctx.html#a86da8359c914b1fec0d60e1c64fcf048">packet_header_key</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structwickr__ctx.html#ad43117fbe3f70681f0ab982b06c6cd75">   79</a></span>&#160;    uint8_t <a class="code" href="structwickr__ctx.html#ad43117fbe3f70681f0ab982b06c6cd75">pkt_enc_version</a>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__ctx.html">wickr_ctx</a> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#define DEFAULT_PKT_ENC_VERSION 4</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structwickr__ctx__gen__result.html">   98</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result</a> {</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">   99</a></span>&#160;    <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structwickr__ctx__gen__result.html#a32feaf76def6c13abe0240c6ae669999">  100</a></span>&#160;    <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#a32feaf76def6c13abe0240c6ae669999">recovery_key</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structwickr__ctx__gen__result.html#a42600241a65a968de4f84120d9031320">  101</a></span>&#160;    <a class="code" href="structwickr__root__keys.html">wickr_root_keys_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#a42600241a65a968de4f84120d9031320">root_keys</a>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result</a> <a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">/* Generation Functions */</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#gaa8904ab3687a22f8d291f5976d05a0e5">wickr_ctx_gen_new</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                                          <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                                          <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#ga458f74fb060fb98da491d733e51fc3ef">wickr_ctx_gen_new_with_sig_key</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                                                       <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                                                       <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *sig_key,</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                                                       <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#ga286a513a606b6643f796539413357c34">wickr_ctx_gen_with_root_keys</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                                                     <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                                                     <a class="code" href="structwickr__root__keys.html">wickr_root_keys_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#a42600241a65a968de4f84120d9031320">root_keys</a>,</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                                                     <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#gaab0b2731d76d6ea91afd1b147c53a29a">wickr_ctx_gen_with_passphrase</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                                                      <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                                                      <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *exported_recovery_key,</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                                                      <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase,</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                                                      <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *recovery_data,</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                                                      <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#ga2e9c63af0e76f1977844ea2dc895e90a">wickr_ctx_gen_with_recovery</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                                                  <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                                                  <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *recovery_data,</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                                                  <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#a32feaf76def6c13abe0240c6ae669999">recovery_key</a>,</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                                                  <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#ga2dadd40adc0217dd337ee6cf745cbc12">wickr_ctx_gen_export_recovery_key_passphrase</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *result, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *wickr_ctx_gen_import_recovery_key_passphrase(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *exported_recovery_key, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#gaa32727731391f1e3fbde26094924b533">wickr_ctx_gen_result_make_recovery</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *result);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<a class="code" href="structwickr__root__keys.html">wickr_root_keys_t</a> *<a class="code" href="group__wickr__ctx.html#ga0bde95494141673604b9e4e1f7954e2c">wickr_ctx_gen_import_recovery</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                                                 <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *recovery_data,</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                                                 <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#a32feaf76def6c13abe0240c6ae669999">recovery_key</a>);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *<a class="code" href="group__wickr__ctx.html#gae095a8cb40d209090212136f8580dc77">wickr_ctx_gen_result_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> *source);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__ctx.html#ga865854408d22e4697eebe5bc129cc6b1">wickr_ctx_gen_result_destroy</a>(<a class="code" href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result_t</a> **result);</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="comment">/* Context Functions */</span></div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="group__wickr__ctx.html#ga085975d71519bf5729a7cf264a5f7876">wickr_ctx_create</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                              <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                              <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *id_chain,</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                              <a class="code" href="structwickr__storage__keys.html">wickr_storage_keys_t</a> *storage_keys);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="group__wickr__ctx.html#gaaa74a32619fb3b382fbeeeddc425a910">wickr_ctx_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>);</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__ctx.html#gaadfdef183c86992efc33b0d730c90327">wickr_ctx_destroy</a>(<a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> **<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>);</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    </div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#gafe05cea0e43f65663a2b084efeedcde8">wickr_ctx_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>);</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    </div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="group__wickr__ctx.html#gaf80d28fc692d102996cdaf05cfdc4c7c">wickr_ctx_create_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                                          <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                                          <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer);</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#ga56c41d96d28a8a25336147248361dcb6">wickr_ctx_export</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    </div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="group__wickr__ctx.html#ga361e58c9f810505a7085cd91c1165391">wickr_ctx_import</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                              <a class="code" href="structwickr__dev__info.html">wickr_dev_info_t</a> *dev_info,</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                              <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *exported,</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                              <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#ga67e64bed3fc0a8ee550c0fc24d44c787">wickr_ctx_export_storage_keys</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;<a class="code" href="structwickr__storage__keys.html">wickr_storage_keys_t</a> *<a class="code" href="group__wickr__ctx.html#gae344e5202193c4b92ee2686529285fe5">wickr_ctx_import_storage_keys</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine,</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *exported,</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *passphrase);</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__ctx.html#gaeff6704dded2d44f689eca5ad25843f8">wickr_ctx_cipher_local</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *plaintext);</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *wickr_ctx_decipher_local(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *cipher_text);</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__ctx.html#ga0b985fb2cd05fb482b5ed175dfd650a0">wickr_ctx_cipher_remote</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *plaintext);</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__ctx.html#gacc1038d3690ba4860b74f13239c65600">wickr_ctx_decipher_remote</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, <span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *cipher_text);</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<a class="code" href="structwickr__ephemeral__keypair.html">wickr_ephemeral_keypair_t</a> *<a class="code" href="group__wickr__ctx.html#ga45b2531085c430942122dcbf45736e10">wickr_ctx_ephemeral_keypair_gen</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *<a class="code" href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">ctx</a>, uint64_t key_id);</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;</div><div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="structwickr__ctx__packet.html">  454</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet</a> {</div><div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">  455</a></span>&#160;    <a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">packet</a>;</div><div class="line"><a name="l00456"></a><span class="lineno"><a class="line" href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">  456</a></span>&#160;    <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">sender</a>;</div><div class="line"><a name="l00457"></a><span class="lineno"><a class="line" href="structwickr__ctx__packet.html#a7bc4643a99b787536ee8b7505412ecce">  457</a></span>&#160;    <a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="structwickr__ctx__packet.html#a7bc4643a99b787536ee8b7505412ecce">parse_result</a>;</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;};</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet</a> <a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a>;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a> *<a class="code" href="group__wickr__ctx.html#ga8ac1e1c9a0b9802d7f259278a09df56c">wickr_ctx_packet_create</a>(<a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">packet</a>,</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;                                            <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">sender</a>,</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;                                            <a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="structwickr__ctx__packet.html#a7bc4643a99b787536ee8b7505412ecce">parse_result</a>);</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__ctx.html#gad7063bcfca4878d290e598ed6bc22e3c">wickr_ctx_packet_destroy</a>(<a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a> **<a class="code" href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">packet</a>);</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;<span class="comment">/* Message Encode / Decode */</span></div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<a class="code" href="structwickr__encoder__result.html">wickr_encoder_result_t</a> *<a class="code" href="group__wickr__ctx.html#ga3498fb1a966dd49c1f3b806a388533ea">wickr_ctx_encode_packet</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *ctx,</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;                                                <span class="keyword">const</span> <a class="code" href="structwickr__payload.html">wickr_payload_t</a> *payload,</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;                                                <span class="keyword">const</span> wickr_node_array_t *nodes);</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;<a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a> *<a class="code" href="group__wickr__ctx.html#ga5032fb65627a509fd9486ea9696e643d">wickr_ctx_parse_packet</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *ctx,</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;                                           <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *packet_buffer,</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;                                           <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">sender</a>);</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a> *wickr_ctx_parse_packet_no_decode(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *ctx,</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;                                                     <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *packet_buffer,</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;                                                     <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">sender</a>);</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *wickr_ctx_decode_packet(<span class="keyword">const</span> <a class="code" href="structwickr__ctx.html">wickr_ctx_t</a> *ctx,</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;                                               <span class="keyword">const</span> <a class="code" href="structwickr__ctx__packet.html">wickr_ctx_packet_t</a> *<a class="code" href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">packet</a>,</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;                                               <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *keypair);</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;}</div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* wickr_ctx_h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__wickr__ctx_html_gaab0b2731d76d6ea91afd1b147c53a29a"><div class="ttname"><a href="group__wickr__ctx.html#gaab0b2731d76d6ea91afd1b147c53a29a">wickr_ctx_gen_with_passphrase</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_with_passphrase(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_buffer_t *exported_recovery_key, wickr_buffer_t *passphrase, wickr_buffer_t *recovery_data, wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaa32727731391f1e3fbde26094924b533"><div class="ttname"><a href="group__wickr__ctx.html#gaa32727731391f1e3fbde26094924b533">wickr_ctx_gen_result_make_recovery</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_gen_result_make_recovery(const wickr_ctx_gen_result_t *result)</div></div>
<div class="ttc" id="structwickr__encoder__result_html"><div class="ttname"><a href="structwickr__encoder__result.html">wickr_encoder_result</a></div><div class="ttdoc">the result of a packet encoding operation</div><div class="ttdef"><b>Definition:</b> encoder_result.h:45</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga865854408d22e4697eebe5bc129cc6b1"><div class="ttname"><a href="group__wickr__ctx.html#ga865854408d22e4697eebe5bc129cc6b1">wickr_ctx_gen_result_destroy</a></div><div class="ttdeci">void wickr_ctx_gen_result_destroy(wickr_ctx_gen_result_t **result)</div></div>
<div class="ttc" id="structwickr__ctx_html_ad43117fbe3f70681f0ab982b06c6cd75"><div class="ttname"><a href="structwickr__ctx.html#ad43117fbe3f70681f0ab982b06c6cd75">wickr_ctx::pkt_enc_version</a></div><div class="ttdeci">uint8_t pkt_enc_version</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:79</div></div>
<div class="ttc" id="structwickr__decode__result_html"><div class="ttname"><a href="structwickr__decode__result.html">wickr_decode_result</a></div><div class="ttdoc">a packet decoding result</div><div class="ttdef"><b>Definition:</b> protocol.h:334</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga45b2531085c430942122dcbf45736e10"><div class="ttname"><a href="group__wickr__ctx.html#ga45b2531085c430942122dcbf45736e10">wickr_ctx_ephemeral_keypair_gen</a></div><div class="ttdeci">wickr_ephemeral_keypair_t * wickr_ctx_ephemeral_keypair_gen(const wickr_ctx_t *ctx, uint64_t key_id)</div></div>
<div class="ttc" id="structwickr__ec__key_html"><div class="ttname"><a href="structwickr__ec__key.html">wickr_ec_key</a></div><div class="ttdoc">Representation of public and private Elliptic Curve Keypair information as buffers.</div><div class="ttdef"><b>Definition:</b> eckey.h:90</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga458f74fb060fb98da491d733e51fc3ef"><div class="ttname"><a href="group__wickr__ctx.html#ga458f74fb060fb98da491d733e51fc3ef">wickr_ctx_gen_new_with_sig_key</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_new_with_sig_key(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_ec_key_t *sig_key, wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="structwickr__ctx__gen__result_html"><div class="ttname"><a href="structwickr__ctx__gen__result.html">wickr_ctx_gen_result</a></div><div class="ttdoc">the output of a context generation</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:98</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga286a513a606b6643f796539413357c34"><div class="ttname"><a href="group__wickr__ctx.html#ga286a513a606b6643f796539413357c34">wickr_ctx_gen_with_root_keys</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_with_root_keys(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_root_keys_t *root_keys, wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="structwickr__storage__keys_html"><div class="ttname"><a href="structwickr__storage__keys.html">wickr_storage_keys</a></div><div class="ttdoc">Key's used for the client to encrypt data meant for itself, and not for other clients.</div><div class="ttdef"><b>Definition:</b> storage.h:48</div></div>
<div class="ttc" id="structwickr__ctx_html"><div class="ttname"><a href="structwickr__ctx.html">wickr_ctx</a></div><div class="ttdoc">Wickr encryption context for high level management of sending / receiving packets using the Wickr pro...</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:73</div></div>
<div class="ttc" id="structwickr__ctx__packet_html_ac57d2b0f48fc3dad5b72d408e30b7b8b"><div class="ttname"><a href="structwickr__ctx__packet.html#ac57d2b0f48fc3dad5b72d408e30b7b8b">wickr_ctx_packet::sender</a></div><div class="ttdeci">wickr_identity_chain_t * sender</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:456</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga67e64bed3fc0a8ee550c0fc24d44c787"><div class="ttname"><a href="group__wickr__ctx.html#ga67e64bed3fc0a8ee550c0fc24d44c787">wickr_ctx_export_storage_keys</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_export_storage_keys(const wickr_ctx_t *ctx, const wickr_buffer_t *passphrase)</div></div>
<div class="ttc" id="group__wickr__ctx_html_gae344e5202193c4b92ee2686529285fe5"><div class="ttname"><a href="group__wickr__ctx.html#gae344e5202193c4b92ee2686529285fe5">wickr_ctx_import_storage_keys</a></div><div class="ttdeci">wickr_storage_keys_t * wickr_ctx_import_storage_keys(const wickr_crypto_engine_t engine, const wickr_buffer_t *exported, const wickr_buffer_t *passphrase)</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga085975d71519bf5729a7cf264a5f7876"><div class="ttname"><a href="group__wickr__ctx.html#ga085975d71519bf5729a7cf264a5f7876">wickr_ctx_create</a></div><div class="ttdeci">wickr_ctx_t * wickr_ctx_create(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_identity_chain_t *id_chain, wickr_storage_keys_t *storage_keys)</div></div>
<div class="ttc" id="structwickr__parse__result_html"><div class="ttname"><a href="structwickr__parse__result.html">wickr_parse_result</a></div><div class="ttdoc">result from parsing an inbound packet</div><div class="ttdef"><b>Definition:</b> protocol.h:266</div></div>
<div class="ttc" id="group__wickr__ctx_html_gacc1038d3690ba4860b74f13239c65600"><div class="ttname"><a href="group__wickr__ctx.html#gacc1038d3690ba4860b74f13239c65600">wickr_ctx_decipher_remote</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_decipher_remote(const wickr_ctx_t *ctx, const wickr_cipher_result_t *cipher_text)</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="structwickr__ctx__packet_html_a7bc4643a99b787536ee8b7505412ecce"><div class="ttname"><a href="structwickr__ctx__packet.html#a7bc4643a99b787536ee8b7505412ecce">wickr_ctx_packet::parse_result</a></div><div class="ttdeci">wickr_parse_result_t * parse_result</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:457</div></div>
<div class="ttc" id="structwickr__root__keys_html"><div class="ttname"><a href="structwickr__root__keys.html">wickr_root_keys</a></div><div class="ttdoc">Root level crypto keys for signatures, local encryption, and remote encryption.</div><div class="ttdef"><b>Definition:</b> root_keys.h:50</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga56c41d96d28a8a25336147248361dcb6"><div class="ttname"><a href="group__wickr__ctx.html#ga56c41d96d28a8a25336147248361dcb6">wickr_ctx_export</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_export(const wickr_ctx_t *ctx, const wickr_buffer_t *passphrase)</div></div>
<div class="ttc" id="structwickr__ctx_html_a86da8359c914b1fec0d60e1c64fcf048"><div class="ttname"><a href="structwickr__ctx.html#a86da8359c914b1fec0d60e1c64fcf048">wickr_ctx::packet_header_key</a></div><div class="ttdeci">wickr_cipher_key_t * packet_header_key</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:78</div></div>
<div class="ttc" id="group__wickr__ctx_html_gafe05cea0e43f65663a2b084efeedcde8"><div class="ttname"><a href="group__wickr__ctx.html#gafe05cea0e43f65663a2b084efeedcde8">wickr_ctx_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_serialize(const wickr_ctx_t *ctx)</div></div>
<div class="ttc" id="structwickr__ctx__gen__result_html_a42600241a65a968de4f84120d9031320"><div class="ttname"><a href="structwickr__ctx__gen__result.html#a42600241a65a968de4f84120d9031320">wickr_ctx_gen_result::root_keys</a></div><div class="ttdeci">wickr_root_keys_t * root_keys</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:101</div></div>
<div class="ttc" id="structwickr__dev__info_html"><div class="ttname"><a href="structwickr__dev__info.html">wickr_dev_info</a></div><div class="ttdoc">Device Information used to make a uniquely identifying set of data for each context running the Wickr...</div><div class="ttdef"><b>Definition:</b> devinfo.h:58</div></div>
<div class="ttc" id="group__wickr__ctx_html_gae095a8cb40d209090212136f8580dc77"><div class="ttname"><a href="group__wickr__ctx.html#gae095a8cb40d209090212136f8580dc77">wickr_ctx_gen_result_copy</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_result_copy(const wickr_ctx_gen_result_t *source)</div></div>
<div class="ttc" id="structwickr__ctx__packet_html_a0cdbc84b6fcc6115b8ddf21b235cc645"><div class="ttname"><a href="structwickr__ctx__packet.html#a0cdbc84b6fcc6115b8ddf21b235cc645">wickr_ctx_packet::packet</a></div><div class="ttdeci">wickr_packet_t * packet</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:455</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga5032fb65627a509fd9486ea9696e643d"><div class="ttname"><a href="group__wickr__ctx.html#ga5032fb65627a509fd9486ea9696e643d">wickr_ctx_parse_packet</a></div><div class="ttdeci">wickr_ctx_packet_t * wickr_ctx_parse_packet(const wickr_ctx_t *ctx, const wickr_buffer_t *packet_buffer, const wickr_identity_chain_t *sender)</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaaa74a32619fb3b382fbeeeddc425a910"><div class="ttname"><a href="group__wickr__ctx.html#gaaa74a32619fb3b382fbeeeddc425a910">wickr_ctx_copy</a></div><div class="ttdeci">wickr_ctx_t * wickr_ctx_copy(const wickr_ctx_t *ctx)</div></div>
<div class="ttc" id="structwickr__ephemeral__keypair_html"><div class="ttname"><a href="structwickr__ephemeral__keypair.html">wickr_ephemeral_keypair</a></div><div class="ttdoc">Represents a key pair used for message key exchanges within the Wickr Messaging Protocol.</div><div class="ttdef"><b>Definition:</b> ephemeral_keypair.h:62</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaadfdef183c86992efc33b0d730c90327"><div class="ttname"><a href="group__wickr__ctx.html#gaadfdef183c86992efc33b0d730c90327">wickr_ctx_destroy</a></div><div class="ttdeci">void wickr_ctx_destroy(wickr_ctx_t **ctx)</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga0b985fb2cd05fb482b5ed175dfd650a0"><div class="ttname"><a href="group__wickr__ctx.html#ga0b985fb2cd05fb482b5ed175dfd650a0">wickr_ctx_cipher_remote</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_ctx_cipher_remote(const wickr_ctx_t *ctx, const wickr_buffer_t *plaintext)</div></div>
<div class="ttc" id="structwickr__ctx__gen__result_html_acf7a49dc829a76f122e2eb88e1ddf5aa"><div class="ttname"><a href="structwickr__ctx__gen__result.html#acf7a49dc829a76f122e2eb88e1ddf5aa">wickr_ctx_gen_result::ctx</a></div><div class="ttdeci">wickr_ctx_t * ctx</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:99</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga361e58c9f810505a7085cd91c1165391"><div class="ttname"><a href="group__wickr__ctx.html#ga361e58c9f810505a7085cd91c1165391">wickr_ctx_import</a></div><div class="ttdeci">wickr_ctx_t * wickr_ctx_import(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, const wickr_buffer_t *exported, const wickr_buffer_t *passphrase)</div></div>
<div class="ttc" id="structwickr__cipher__result_html"><div class="ttname"><a href="structwickr__cipher__result.html">wickr_cipher_result</a></div><div class="ttdef"><b>Definition:</b> cipher.h:97</div></div>
<div class="ttc" id="structwickr__packet_html"><div class="ttname"><a href="structwickr__packet.html">wickr_packet</a></div><div class="ttdoc">An encrypted packet made with the Wickr protocol.</div><div class="ttdef"><b>Definition:</b> protocol.h:188</div></div>
<div class="ttc" id="group__wickr__ctx_html_gad7063bcfca4878d290e598ed6bc22e3c"><div class="ttname"><a href="group__wickr__ctx.html#gad7063bcfca4878d290e598ed6bc22e3c">wickr_ctx_packet_destroy</a></div><div class="ttdeci">void wickr_ctx_packet_destroy(wickr_ctx_packet_t **packet)</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga0bde95494141673604b9e4e1f7954e2c"><div class="ttname"><a href="group__wickr__ctx.html#ga0bde95494141673604b9e4e1f7954e2c">wickr_ctx_gen_import_recovery</a></div><div class="ttdeci">wickr_root_keys_t * wickr_ctx_gen_import_recovery(const wickr_crypto_engine_t engine, const wickr_buffer_t *recovery_data, const wickr_cipher_key_t *recovery_key)</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga3498fb1a966dd49c1f3b806a388533ea"><div class="ttname"><a href="group__wickr__ctx.html#ga3498fb1a966dd49c1f3b806a388533ea">wickr_ctx_encode_packet</a></div><div class="ttdeci">wickr_encoder_result_t * wickr_ctx_encode_packet(const wickr_ctx_t *ctx, const wickr_payload_t *payload, const wickr_node_array_t *nodes)</div></div>
<div class="ttc" id="structwickr__cipher__key_html"><div class="ttname"><a href="structwickr__cipher__key.html">wickr_cipher_key</a></div><div class="ttdef"><b>Definition:</b> cipher.h:189</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga2e9c63af0e76f1977844ea2dc895e90a"><div class="ttname"><a href="group__wickr__ctx.html#ga2e9c63af0e76f1977844ea2dc895e90a">wickr_ctx_gen_with_recovery</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_with_recovery(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_buffer_t *recovery_data, wickr_cipher_key_t *recovery_key, wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="structwickr__ctx__packet_html"><div class="ttname"><a href="structwickr__ctx__packet.html">wickr_ctx_packet</a></div><div class="ttdoc">a parsed inbound wickr packet that has yet to be decoded by this context</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:454</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaa8904ab3687a22f8d291f5976d05a0e5"><div class="ttname"><a href="group__wickr__ctx.html#gaa8904ab3687a22f8d291f5976d05a0e5">wickr_ctx_gen_new</a></div><div class="ttdeci">wickr_ctx_gen_result_t * wickr_ctx_gen_new(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga8ac1e1c9a0b9802d7f259278a09df56c"><div class="ttname"><a href="group__wickr__ctx.html#ga8ac1e1c9a0b9802d7f259278a09df56c">wickr_ctx_packet_create</a></div><div class="ttdeci">wickr_ctx_packet_t * wickr_ctx_packet_create(wickr_packet_t *packet, wickr_identity_chain_t *sender, wickr_parse_result_t *parse_result)</div></div>
<div class="ttc" id="structwickr__payload_html"><div class="ttname"><a href="structwickr__payload.html">wickr_payload</a></div><div class="ttdoc">The encrypted body content of a Wickr packet.</div><div class="ttdef"><b>Definition:</b> payload.h:46</div></div>
<div class="ttc" id="group__wickr__ctx_html_ga2dadd40adc0217dd337ee6cf745cbc12"><div class="ttname"><a href="group__wickr__ctx.html#ga2dadd40adc0217dd337ee6cf745cbc12">wickr_ctx_gen_export_recovery_key_passphrase</a></div><div class="ttdeci">wickr_buffer_t * wickr_ctx_gen_export_recovery_key_passphrase(const wickr_ctx_gen_result_t *result, const wickr_buffer_t *passphrase)</div></div>
<div class="ttc" id="structwickr__ctx_html_a043ea3b027c4d27909f77bb195550b11"><div class="ttname"><a href="structwickr__ctx.html#a043ea3b027c4d27909f77bb195550b11">wickr_ctx::dev_info</a></div><div class="ttdeci">wickr_dev_info_t * dev_info</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:75</div></div>
<div class="ttc" id="structwickr__ctx_html_a044a292ab5cbba50fd3ec2f5bf7a00ef"><div class="ttname"><a href="structwickr__ctx.html#a044a292ab5cbba50fd3ec2f5bf7a00ef">wickr_ctx::id_chain</a></div><div class="ttdeci">wickr_identity_chain_t * id_chain</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:76</div></div>
<div class="ttc" id="structwickr__ctx__gen__result_html_a32feaf76def6c13abe0240c6ae669999"><div class="ttname"><a href="structwickr__ctx__gen__result.html#a32feaf76def6c13abe0240c6ae669999">wickr_ctx_gen_result::recovery_key</a></div><div class="ttdeci">wickr_cipher_key_t * recovery_key</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:100</div></div>
<div class="ttc" id="structwickr__ctx_html_a244c238ad74f2dbcddc280822d1fb93f"><div class="ttname"><a href="structwickr__ctx.html#a244c238ad74f2dbcddc280822d1fb93f">wickr_ctx::engine</a></div><div class="ttdeci">wickr_crypto_engine_t engine</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:74</div></div>
<div class="ttc" id="structwickr__identity__chain_html"><div class="ttname"><a href="structwickr__identity__chain.html">wickr_identity_chain</a></div><div class="ttdoc">Represents a root -&gt; node relationship as well as it's signature status.</div><div class="ttdef"><b>Definition:</b> identity.h:110</div></div>
<div class="ttc" id="structwickr__ctx_html_ab6d3ad69a6a16c0f582186b9d8461b66"><div class="ttname"><a href="structwickr__ctx.html#ab6d3ad69a6a16c0f582186b9d8461b66">wickr_ctx::storage_keys</a></div><div class="ttdeci">wickr_storage_keys_t * storage_keys</div><div class="ttdef"><b>Definition:</b> wickr_ctx.h:77</div></div>
<div class="ttc" id="structwickr__crypto__engine_html"><div class="ttname"><a href="structwickr__crypto__engine.html">wickr_crypto_engine</a></div><div class="ttdoc">Interface to a set of cryptographic operations used throughout the library. Currently the default imp...</div><div class="ttdef"><b>Definition:</b> crypto_engine.h:53</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaeff6704dded2d44f689eca5ad25843f8"><div class="ttname"><a href="group__wickr__ctx.html#gaeff6704dded2d44f689eca5ad25843f8">wickr_ctx_cipher_local</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_ctx_cipher_local(const wickr_ctx_t *ctx, const wickr_buffer_t *plaintext)</div></div>
<div class="ttc" id="group__wickr__ctx_html_gaf80d28fc692d102996cdaf05cfdc4c7c"><div class="ttname"><a href="group__wickr__ctx.html#gaf80d28fc692d102996cdaf05cfdc4c7c">wickr_ctx_create_from_buffer</a></div><div class="ttdeci">wickr_ctx_t * wickr_ctx_create_from_buffer(const wickr_crypto_engine_t engine, wickr_dev_info_t *dev_info, const wickr_buffer_t *buffer)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
